package com.lzh.others.designmode.factorymod;


import com.lzh.others.designmode.factorymod.simpleFactoryMod.IChart;

/**
 * @Description:
 * @Author: LiuZiHao
 * @Date: 2022/11/8 10:50
 */
public class FactoryMain {
    public static void main(String[] args) {
        IChartFactory barChartFactory = new BarChartFactory();
        IChart chart = barChartFactory.getChart();
        System.out.println("chart = " + chart);
//        String test = null;
//        if ((test = "test") != null){
//            System.out.println("test = " + test);
//        }
    }
}
